<?php
?>
<h1>Шаблоны писем</h1>
<div class="admin-btns">
    <a href="/notify/add" class="button">Добавить шаблон</a>
</div>
<div class="content">
    <table width="100%">
        <?foreach($models as $model):?>
        <tr>
            <td style="vertical-align: middle">
                <?=$model->title?>
            </td>
            <td width="150">
                <div class="m-5"><a class="button" href="/notify/add/id/<?=$model->id?>">Редактировать</a></div>
                <div class="m-5"><a class="button" href="/notify/delete/id/<?=$model->id?>">Удалить</a></div>
            </td>
        </tr>
        <?endforeach;?>
    </table>
</div>